package org.minbox.framework.logging.spring.context.annotation.client;

import org.minbox.framework.logging.spring.util.LoggingBeanUtils;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ImportBeanDefinitionRegistrar;
import org.springframework.core.type.AnnotationMetadata;

/**
 * Register logging client beans {@link org.minbox.framework.logging.spring.util.LoggingBeanUtils#registerLoggingClientBeans(BeanDefinitionRegistry)}
 * register {@link org.minbox.framework.logging.client.interceptor.LoggingInterceptor}
 *
 * @author 恒宇少年
 */
public class LoggingClientBeanDefinitionRegistrar implements ImportBeanDefinitionRegistrar {

    @Override
    public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {
        LoggingBeanUtils.registerLoggingClientBeans(registry);
    }
}
